<template>
  <div class="h5-wrapper">
    <div class="content">
      welcome
      <!-- 内容部分 -->
      <br />
      <router-link to="/MyHome/MyPage1">MyPage1</router-link> ||
      <router-link to="/MyHome/MyPage2">MyPage2</router-link>
      <br />
      
      <button @click="selectMenu(aa)">11</button>
      <router-view></router-view>
    </div>
  </div>
</template>
<script>
export default {
  data(){
    return{
      aa: "/MyHome/MyPage1"
    }
  },
    methods: {
      selectMenu(key) {
        this.$router.push(
          {
            path: key,
          },
          () => {},
        );
      },
    },};
</script>
<style scoped>
   a.router-link-active {
      color: orange;
    }
</style>